ebe77642b48146c4218f9a7486e617e1bb88eb43,maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java,PluginXdocGenerator,writeGoalAttributes,#MojoDescriptor#XMLWriter#,129
Before Change
if ( mojoDescriptor.isAggregator() )
{
w.writeMarkup( "<li>Executes as an aggregator plugin.</li>" );
}
if ( mojoDescriptor.isDirectInvocationOnly() )
{
w.writeMarkup( "<li>Executes by direct invocation only.</li>" );
}
value = mojoDescriptor.isDependencyResolutionRequired();
if ( StringUtils.isNotEmpty( value ) )
{
w.writeMarkup( "<li>Requires dependency resolution of artifacts in scope: <code>" + value +
"</code></li>" );
}
value = mojoDescriptor.getPhase();
After Change
if ( mojoDescriptor.isProjectRequired() )
{
w.startElement( "li" );
w.writeMarkup( "Requires a Maven 2.0 project to execute." );
w.endElement(); //li
}
if ( mojoDescriptor.isAggregator() )
{
w.startElement( "li" );
w.writeMarkup( "Executes as an aggregator plugin." );
w.endElement(); //li
}
if ( mojoDescriptor.isDirectInvocationOnly() )
{
w.startElement( "li" );
w.writeMarkup( "Executes by direct invocation only." );
w.endElement(); //li
}
value = mojoDescriptor.isDependencyResolutionRequired();
if ( StringUtils.isNotEmpty( value ) )
{
w.startElement( "li" );
w.writeMarkup( "Requires dependency resolution of artifacts in scope: <code>" + value +
"</code>" );
w.endElement(); //li
}
value = mojoDescriptor.getPhase();
if ( StringUtils.isNotEmpty( value ) )
{
w.startElement( "li" );
w.writeMarkup( "Automatically executes within the lifecycle phase: <code>" + value + "</code>" );
w.endElement(); //li
}
value = mojoDescriptor.getExecutePhase();
if ( StringUtils.isNotEmpty( value ) )
{
w.startElement( "li" );
w.writeMarkup( "Invokes the execution of the lifecycle phase <code>" + value +
"</code> prior to executing itself." );
w.endElement(); //li
}
value = mojoDescriptor.getExecuteGoal();
if ( StringUtils.isNotEmpty( value ) )
{
w.startElement( "li" );
w.writeMarkup( "Invokes the execution of this plugin's goal <code>" + value +
"</code> prior to executing itself." );
w.endElement(); //li
}
value = mojoDescriptor.getExecuteLifecycle();
if ( StringUtils.isNotEmpty( value ) )
{
w.startElement( "li" );
w.writeMarkup( "Executes in its own lifecycle: <code>" + value + "</code>" );
w.endElement(); //li
}
if ( mojoDescriptor.isOnlineRequired() )
{
w.startElement( "li" );
w.writeMarkup( "Requires that mvn runs in online mode." );
w.endElement(); //li
}
if ( !mojoDescriptor.isInheritedByDefault() )
{
w.startElement( "li" );
w.writeMarkup( "Is NOT inherited by default in multi-project builds." );
w.endElement(); //li
}
w.endElement();//ul